Method and apparatus for testing stress based on cloud service

ABSTRACT

The present disclosure discloses a method and apparatus for testing a stress based on a cloud service, and relates to the field of cloud computing technology, and further to the field of cloud operation and maintenance technology. A particular implementation comprises: acquiring, based on first stress test information of a business system in a cloud service, a number of expected stress test nodes corresponding to the business system; creating edge computing nodes, a number of the edge computing nodes being identical to the number of the expected stress test nodes; and performing a stress test on the business system by using the edge computing nodes, to acquire second stress test information of the business system.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to Chinese Patent Application No.202110315147.X, filed with the China National Intellectual PropertyAdministration (CNIPA) on Mar. 24, 2021, the contents of which areincorporated herein by reference in their entirety.

TECHNICAL FIELD

The present disclosure relates to the field of cloud computingtechnology, and further to the field of cloud operation and maintenancetechnology.

BACKGROUND

With the rapid development of cloud business, more and more enterprisesselect a cloud server as a first choice for infrastructures, and thus,more and more operation and maintenance management needs would also bebased on the architecture of the cloud server. Further, a performanceevaluation is a relatively common need in the field of operation andmaintenance, and a main means is to evaluate a capacity level of asystem and the performance capability of a service through a performancetest. Then, a customer optimizes a capacity by expanding a servicecapacity or tuning a program, to deal with problems such as a peak oftraffic and a performance degradation. After an analysis for marketcustomers, it is found that there are more needs for an evaluation inscenarios such as performance testing and performance bottleneckpositioning for a launch of a new product, a peak of promotionalactivity, and a complex behavior.

At present, the core idea of a method of measuring a performance indexof a service deployed on a cloud is to perform a stress test on theservice deployed on the cloud. As to the implementation, a standalonestress test tool is used to perform the stress test on the service. Theinitiation of the stress test is generally implemented by: using asingle physical machine to start a plurality of threads on the physicalmachine to initiate the stress test; deploying machine rooms in aplurality of regions and performing resource scheduling on the machinerooms to initiate the stress test; or deploying a container on aplurality of physical machines or cloud servers.

SUMMARY

The present disclosure provides a method and apparatus for testing astress based on a cloud service, an electronic device and a storagemedium.

In a first aspect, an embodiment of the present disclosure provides amethod for testing a stress based on a cloud service, and the methodcomprises: acquiring, based on first stress test information of abusiness system in a cloud service, a number of expected stress testnodes corresponding to the business system; creating edge computingnodes, a number of the edge computing nodes being identical to thenumber of the expected stress test nodes; and performing a stress teston the business system by using the edge computing nodes, to acquiresecond stress test information of the business system.

In a second aspect, an embodiment of the present disclosure provides anapparatus for testing a stress based on a cloud service, and theapparatus comprises: an acquiring module, configured to acquire, basedon first stress test information of a business system in a cloudservice, a number of expected stress test nodes corresponding to thebusiness system; a creating module, configured to create edge computingnodes, a number of the edge computing nodes being identical to thenumber of the expected stress test nodes; and a testing module,configured to perform a stress test on the business system by using theedge computing nodes, to acquire second stress test information of thebusiness system.

In a third aspect, an embodiment of the present disclosure provides anelectronic device, and the electronic device comprises: at least oneprocessor; and a memory communicatively connected with the at least oneprocessor, where the memory stores instructions executable by the atleast one processor, and the instructions, when executed by the at leastone processor, cause the at least one processor to execute the methodfor testing a stress based on a cloud service as described in any one ofthe implementations of the first aspect.

In a fourth aspect, an embodiment of the present disclosure provides anon-transitory computer readable storage medium storing computerinstructions, where the computer instructions cause a computer toexecute the method for testing a stress based on a cloud service asdescribed in any one of the implementations of the first aspect.

In a fifth aspect, an embodiment of the present disclosure provides acomputer program product, comprising a computer program, wherein thecomputer program, when executed by a processor, implements the methodfor testing a stress based on a cloud service as described in any one ofthe implementations of the first aspect.

It should be understood that the content described in this part is notintended to identify key or important features of the embodiments of thepresent disclosure, and is not used to limit the scope of the presentdisclosure. Other features of the present disclosure will be easilyunderstood through the following description.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings are used for a better understanding of thescheme, and do not constitute a limitation to the present disclosure.Here:

FIG. 1 is a diagram of an exemplary system architecture in which thepresent disclosure may be applied;

FIG. 2 is a flowchart of an embodiment of a method for testing a stressbased on a cloud service according to the present disclosure;

FIG. 3 is a flowchart of an embodiment in which a number of expectedstress test nodes is acquired, according to the present disclosure;

FIG. 4 is a schematic diagram of an embodiment of an apparatus fortesting a stress based on a cloud service according to the presentdisclosure; and

FIG. 5 is a block diagram of an electronic device used to implement amethod for testing a stress based on a cloud service according toembodiments of the present disclosure.

DETAILED DESCRIPTION OF EMBODIMENTS

Exemplary embodiments of the present disclosure are described below incombination with the accompanying drawings, and various details of theembodiments of the present disclosure are included in the description tofacilitate understanding, and should be considered as exemplary only.Accordingly, it should be recognized by one of ordinary skill in the artthat various changes and modifications may be made to the embodimentsdescribed herein without departing from the scope and spirit of thepresent disclosure. Also, for clarity and conciseness, descriptions forwell-known functions and structures are omitted in the followingdescription.

It should be noted that the embodiments in the present disclosure andthe features in the embodiments may be combined with each other on anon-conflict basis. The present disclosure will be described below indetail with reference to the accompanying drawings and in combinationwith the embodiments.

FIG. 1 illustrates an exemplary system architecture 100 in which anembodiment of a method for testing a stress based on a cloud serviceaccording to the present disclosure may be applied.

As shown in FIG. 1 , the system architecture 100 may include terminaldevices 104 and 105, a network 106, servers 101 and 102, and a cloudservice 103. The network 106 serves as a medium providing acommunication link between the terminal devices 104 and 105, the servers101 and 102, and the cloud service 103. The network 106 may includevarious types of connections, for example, wired or wirelesscommunication links, or optical fiber cables.

The terminal devices 104 and 105 may interact with the servers 101 and102 and the cloud service 103 via the network 106 to receive or send amessage. Various applications (e.g., a search application, a datacollection application, a data processing application, an instantcommunication tool, social platform software, and a shoppingapplication) may be installed on the terminal devices 104 and 105.

The servers 101 and 102 may be servers providing various services. Forexample, the servers 101 and 102 may be backend servers receiving arequest sent by a terminal device communicated with the servers 101 and102. The backend servers may perform processing such as receiving andanalyzing on the request sent by the terminal device, and generate aprocessing result.

The servers 101 and 102 interact with the cloud service 103 to acquirefirst stress test information of a business system in the cloud service103. The first stress test information may be configuration informationrelated to the business system. The servers 101 and 102 may acquire anumber of expected stress test nodes corresponding to the businesssystem according to the first stress test information of the businesssystem, and then create the same number of edge computing nodes at aside of the network close to the terminal devices 104 and 105 accordingto the number of the expected stress test nodes. The servers 101 and 102send a stress test start instruction to the edge computing nodes,perform a stress test on the business system by using the edge computingnodes, and acquire, from the edge computing nodes, second stress testinformation after the test for the business system.

It should be noted that the servers may be hardware or software. Whenbeing the hardware, the servers may be various electronic devices thatprovide various services for the terminal devices. When being thesoftware, the servers may be implemented as a plurality of pieces ofsoftware or a plurality of software modules that provide variousservices for the terminal devices, or may be implemented as a singlepiece of software or a single software module that provides variousservices for the terminal devices, which will not be particularlydefined here.

It should be noted that the method for testing a stress based on a cloudservice that is provided in the embodiments of the present disclosuremay be performed by the servers 101 and 102. Correspondingly, anapparatus for testing a stress based on a cloud service may be providedin the servers 101 and 102.

It should be appreciated that the numbers of the terminal devices, thenetworks, and the servers in FIG. 1 are merely illustrative. Any numberof terminal devices, networks, servers and cloud services may beprovided based on actual requirements.

Referring to FIG. 2 , FIG. 2 is a schematic flow diagram 200 of anembodiment of a method for testing a stress based on a cloud servicethat may be applied to the present disclosure. The method for testing astress based on a cloud service includes the following steps:

Step 210, acquiring, based on first stress test information of abusiness system in a cloud service, a number of expected stress testnodes corresponding to the business system.

Here, the cloud service may be addition, usage and interaction modes ofan Internet-based related service, and generally relate to provision ofa dynamically scalable and often virtualized resource through theInternet. The cloud service refers to that a desired service is obtainedover a network in an on-demand and scalable manner. The cloud servicemay put software, hardware and data information that are required by anenterprise into a cloud network to construct a corresponding businesssystem. A cloud service provider provides a service resource to theenterprise, the service resource including a server, a virtual machine,a network segment, and the like.

In this embodiment, an executing body (e.g., the server 101 or 102 inFIG. 1 ) of the method for testing a stress based on a cloud service maydetermine a to-be-tested business system in the cloud service, andacquire the first stress test information of the business system byperforming a detection or an information acquisition on the businesssystem in the cloud service. The first stress test information may berelated configuration information used to perform a stress test on thebusiness system, and may include stress test node information used todetermine a number of stress test nodes and stress test link informationused to initiate the stress test to the business system. The aboveexecuting body may determine a number of expected stress test nodes forthe business system according to the first stress test information ofthe business system, to acquire the number of the expected stress testnodes corresponding to the business system. The number of the expectedstress test nodes may be a number for representing stress test nodesrequired when the stress test is performed on the business system.

Step 220, creating edge computing nodes.

In this embodiment, after acquiring the number of the expected stresstest nodes corresponding to the business system, the above executingbody may create edge computing nodes at a side of the network close to auser side according to the number of the expected stress test nodes. Thenumber of the edge computing nodes is identical to that of the expectedstress test nodes. Here, the edge computing node refers to a businessplatform constructed at an edge side of the network close to the userside, and the business platform provides a resource such as a storageresource, a computing resource and a network resource, to sink somecritical business applications to the edge of an access network. Theposition of the edge computing node is between the user side and thecloud service, and thus, the width and delay loss caused by networktransmission and multi-stage forwarding may be reduced. The edgecomputing node is closer to the user side than a traditional cloudservice edge node.

Step 230, performing a stress test on the business system by using theedge computing nodes, to acquire second stress test information of thebusiness system.

In this embodiment, after creating the same number of edge computingnodes according to the number of the expected stress test nodes, theabove executing body may send a stress test start instruction to theedge computing nodes.

After the edge computing node receives the stress test startinstruction, a stress test tool is deployed according to the stress teststart instruction, and the stress test tool may be deployed on the edgecomputing node in the form of a container. After the deployment of thestress test tool is completed, the edge computing node performs thestress test on the business system according to the stress test linkinformation. The stress test link information may include an interface(api) of the business system, link information, and the like. That is,the edge computing node initiates the stress test to the business systemby using the interface of the business system and the link information,and obtains the second stress test information after the test. Thesecond stress test information refers to test information of thebusiness system that is obtained after the stress test is performed onthe business system. The edge computing node returns the second stresstest information after the test to the above executing body.

The above executing body acquires the second stress test information ofthe business system from the stress test tool on the edge computingnode, after the edge computing node completes the stress test for thebusiness system.

According to the method for testing a stress based on a cloud serviceprovided in the embodiment of the present disclosure, the number of theexpected stress test nodes corresponding to the business system isacquired based on the first stress test information of the businesssystem in the cloud service. Then, the edge computing nodes are created,and the number of the edge computing nodes is identical to that of theexpected stress test nodes. Finally, the stress test is performed on thebusiness system by using the edge computing nodes, to acquire the secondstress test information of the business system. Accordingly, the stresstest performed on the business system in the cloud service isimplemented. The edge computing nodes may relate to a plurality ofregions and a plurality of operators, a very complete multi-regionstress test initiation may be implemented without building a machineroom, and the connection for the stress test initiation would not faildue to a region problem. Thus, the stress test simultaneously performedon business systems in the plurality of regions may be satisfied. Inaddition, the stress test tool may be deployed on a stress testinitiation node, and the deployment environment of the stress test toolis consistent even without a manual operation or script operation.

As an alternative implementation, the above first stress testinformation in the present disclosure may include a plurality of piecesof expected stress test region information of the business system andstress test node information corresponding to each piece of expectedstress test region information. Here, the expected stress test regioninformation may refer to region information receiving a request from theuser side when the stress test is performed on the business system, thatis, target region information expected in the stress test this time. Thestress test node information may be business information used todetermine a number of expected stress test nodes required for the stresstest. An expected stress test node refers to a stress test initiationnode required for the stress test this time in each expected stress testregion and, and the number of the expected stress test nodes refers to anumber of stress test initiation nodes. The stress test node informationmay include stress test configuration information in the businesssystem. The stress test node information may include network informationcorresponding to the each piece of expected stress test regioninformation, for example, a network operator corresponding to eachregion. The stress test node information may further include stress testweight information corresponding to the each piece of expected stresstest region information. The stress test weight information may refer toa proportion of the each piece of expected stress test regioninformation receiving the request from the user side when the stresstest is performed on the business system. Different expected stress testregion information corresponds to different weight information. Thestress test weight information may be configuration information presetin the business system by a testing personnel. The stress test nodeinformation may further include expected concurrency number information,the expected concurrency number information refers to a targetconcurrency number set when the stress test is performed on the businesssystem, and the target concurrency number is a number of receivedrequests of the user side.

In addition, the step 210 “acquiring, based on first stress testinformation of a business system in a cloud service, a number ofexpected stress test nodes corresponding to the business system” in FIG.2 may include: acquiring, for the each piece of the expected stress testregion information, a number of the expected stress test nodes of theexpected stress test region information based on the stress test nodeinformation corresponding to the each piece of expected stress testregion information.

Particularly, the above executing body may acquire the first stress testinformation, including the plurality of pieces of expected stress testregion information of the business system and the stress test nodeinformation corresponding to the each piece of the expected stress testregion information, by performing the detection or the informationacquisition on the business system in the cloud service, and calculate,for the each piece of expected stress test region information, a numberof corresponding expected stress test nodes by using the first stresstest information corresponding to the expected stress test regioninformation, respectively. That is, the above executing body may acquirethe number of the expected stress test nodes of the each piece ofexpected stress test region information according to the stress testnode information corresponding to the each piece of expected stress testregion information.

As an alternative implementation, further referring to FIG. 3 , FIG. 3shows a step of acquiring a number of expected stress test nodes of eachpiece of expected stress test region information. The step may includethe following steps:

Step 310, determining, for each piece of the expected stress test regioninformation, a node concurrency threshold corresponding to networkinformation based on the network information corresponding to theexpected stress test region information.

Here, the each piece of the expected stress test region informationcorresponds to unique network information, that is, the each piece ofexpected stress test region information corresponds to a unique networkoperator. The network node of each network operator has a certainrequest response threshold, that is, the network node of the eachnetwork operator may process a preset number of request responses. Thepreset number is a processing threshold corresponding to networkinformation, that is, the node concurrency threshold corresponding tothe network information. The node concurrency threshold corresponding toeach piece of network information is preset by the network operator.

In this step, by performing a detection or an information acquisition ona business system in a cloud service, the above executing body mayacquire a plurality of pieces of the expected stress test regioninformation of the business system and network information correspondingto each piece of the expected stress test region information. Accordingto the network information of the each piece of expected stress testregion information, the above executing body may respectively determinea node concurrency threshold at which the network information of theeach piece of expected stress test region information may process therequest responses.

Step 320, acquiring a stress test concurrency level corresponding to theexpected stress test region information based on stress test weightinformation corresponding to the expected stress test region informationand expected concurrency number information.

In this step, by performing the detection or the information acquisitionon the business system in the cloud service, the above executing bodymay acquire the stress test weight information corresponding to the eachpiece of the expected stress test region information and the expectedconcurrency number information. For the each piece of the expectedstress test region information, the above executing body may input thestress test weight information corresponding to the expected stress testregion information and the expected concurrency number information intoa concurrency level calculation formula, to calculate and obtain thestress test concurrency level corresponding to the inputted expectedstress test region information. The concurrency level calculationformula may be a formula used to calculate a stress test concurrencylevel corresponding to the expected stress test region information. Inthe concurrency level calculation formula, a ratio of the stress testweight information corresponding to the inputted expected stress testregion information to the stress test weight information of all expectedstress test region information may be multiplied by an expectedconcurrency number. That is, the concurrency level calculation formulamay be:

${{stress}\mspace{14mu}{test}\mspace{14mu}{concurrency}\mspace{14mu}{level}\mspace{14mu}{of}\mspace{14mu}{the}\mspace{14mu}{expected}\mspace{14mu}{stress}\mspace{14mu}{test}\mspace{14mu}{region}\mspace{14mu}{information}} = {\frac{\begin{matrix}{{stress}\mspace{14mu}{test}\mspace{14mu}{weight}\mspace{14mu}{of}\mspace{14mu}{the}\mspace{14mu}{expected}} \\{{stress}\mspace{14mu}{test}\mspace{14mu}{region}\mspace{14mu}{information}}\end{matrix}}{\begin{matrix}{{stress}\mspace{14mu}{test}\mspace{14mu}{weights}\mspace{14mu}{of}\mspace{14mu}{all}\mspace{14mu}{expected}} \\{{stress}\mspace{14mu}{test}\mspace{14mu}{region}\mspace{14mu}{information}}\end{matrix}}*{expected}\mspace{14mu}{concurrency}\mspace{14mu}{number}\mspace{14mu}{information}}$

Step 330, acquiring a number of the expected stress test nodes of theexpected stress test region information based on the stress testconcurrency level and the node concurrency threshold.

In this step, after acquiring the stress test concurrency levelcorresponding to the each piece of the expected stress test regioninformation and the node concurrency threshold corresponding to thenetwork information, the above executing body may input, for the eachpiece of expected stress test region information, the stress testconcurrency level corresponding to the expected stress test regioninformation and the node concurrency threshold into a node numbercalculation formula, to calculate and obtain the number of the expectedstress test nodes corresponding to the inputted expected stress testregion information. The node number calculation formula may be a formulaused to calculate a number of expected stress test nodes of the expectedstress test region information. The node number calculation formula maybe a calculation for a ratio of the stress test concurrency levelcorresponding to the inputted expected stress test region information tothe node concurrency threshold. That is, the node number calculationformula may be:

${{number}\mspace{14mu}{of}\mspace{14mu}{expected}\mspace{14mu}{stress}\mspace{14mu}{test}\mspace{14mu}{nodes}\mspace{14mu}{of}\mspace{14mu}{the}\mspace{14mu}{expected}\mspace{14mu}{stress}\mspace{14mu}{test}\mspace{14mu}{region}\mspace{14mu}{information}} = \frac{\begin{matrix}{{stress}\mspace{14mu}{test}\mspace{14mu}{concurrency}\mspace{14mu}{level}\mspace{14mu}{corresponding}} \\{{to}\mspace{14mu}{the}\mspace{14mu}{expected}\mspace{14mu}{stress}\mspace{14mu}{test}\mspace{14mu}{region}\mspace{14mu}{information}}\end{matrix}}{{node}\mspace{14mu}{concurrency}\mspace{14mu}{threshold}}$

In this embodiment, the number of the expected stress test nodes of theeach piece of the expected stress test region information is calculatedand obtained through first stress test information of the businesssystem. That is, a stress concurrency value is associated with the firststress test information of the business system. The change of the stressconcurrency value may be implemented by only automatically expanding orreducing the number of the nodes according to the first stress testinformation configured by the business system, thereby improving theflexibility in adjusting the stress concurrency value.

As an alternative implementation, the above method for testing a stressfurther includes: releasing edge computing nodes, in response todetecting that the edge computing nodes are in an idle state withinpreset time.

Particularly, the above executing body may detect the working state ofthe edge computing nodes in real time, to detect whether the edgecomputing nodes are in the working state. When a stress test tool in theedge computing nodes performs a stress test on the business system, theedge computing nodes are in the working state. When the stress test toolin the edge computing nodes stops performing the stress test on thebusiness system, the edge computing nodes are in the idle state, thatis, there is no stress test task at present. By detecting the workingstate of the edge computing nodes in real time, the above executing bodydetermines that the edge computing nodes are continuously in the idlestate within the preset time. That is, if it is determined that there isno stress test task at present, the created edge computing nodes arereleased. When a new stress test task is received, new edge computingnodes are created.

In this implementation, the edge computing nodes are released when thereis no stress test task, and the network resource is released when thereis no need to perform the stress test, which does not make the resourcesidle. Moreover, the created edge computing nodes may control thecapacity, and the edge computing nodes may be created as needed, whichdoes not lead to a waste of the resources. Thus, the resourceutilization rate is improved.

As an alternative implementation, the above method for testing a stressfurther includes: analyzing service performance of the business systembased on second stress test information of the business system.

Particularly, after acquiring the second stress test informationobtained through the stress test performed by the stress test tool inthe edge computing nodes, the above executing body may analyze theservice performance of the business system according to the secondstress test information, and generate an analysis report for the serviceperformance of the business system. The above executing body may sendthe analysis report to a user side, and present the analysis report to atesting personnel of corresponding to the business system.

In this implementation, the analysis for the performance of the businesssystem is implemented through the second stress test information, thusimplementing the analysis for the performance of the business system inthe cloud service.

Further referring to FIG. 4 , as an implementation of the method shownin the above drawings, the present disclosure provides an embodiment ofan apparatus for testing a stress based on a cloud service. Theembodiment of the apparatus corresponds to the embodiment of the methodshown in FIG. 2 , and the apparatus may be applied in various electronicdevices.

As shown in FIG. 4 , the apparatus 400 for testing a stress based on acloud service in this embodiment includes: an acquiring module 410, acreating module 420 and a testing module 430.

Here, the acquiring module 410 is configured to acquire, based on firststress test information of a business system in a cloud service, anumber of expected stress test nodes corresponding to the businesssystem.

The creating module 420 is configured to create edge computing nodes, anumber of the edge computing nodes being identical to the number of theexpected stress test nodes.

The testing module 430 is configured to perform a stress test on thebusiness system by using the edge computing nodes, to acquire secondstress test information of the business system.

In some alternative implementations of this embodiment, the first stresstest information comprises a plurality of pieces of the expected stresstest region information of the business system and stress test nodeinformation corresponding to each piece of expected stress test regioninformation. The acquiring module 410 is further configured to: acquire,for the each piece of the expected stress test region information, anumber of the expected stress test nodes of the expected stress testregion information based on the stress test node informationcorresponding to the expected stress test region information.

In some alternative implementations of this embodiment, the stress testnode information comprises network information, stress test weightinformation, and expected concurrency number information. The acquiringmodule 410 is further configured to: determine, for the each piece ofthe expected stress test region information, a node concurrencythreshold corresponding to the network information based on networkinformation corresponding to the expected stress test regioninformation; acquire a stress test concurrency level corresponding tothe expected stress test region information based on stress test weightinformation corresponding to the expected stress test region informationand the expected concurrency number information; and acquire the numberof the expected stress test nodes of the expected stress test regioninformation based on the stress test concurrency level corresponding tothe expected stress test region information and the node concurrencythreshold corresponding to the network information.

In some alternative implementations of this embodiment, the apparatusfurther comprises: a releasing module, configured to release the edgecomputing nodes, in response to detecting that the edge computing nodesare in an idle state within preset time.

In some alternative implementations of this embodiment, the apparatusfurther comprises: an analyzing module, configured to analyze serviceperformance of the business system based on the second stress testinformation of the business system.

According to the apparatus for testing a stress based on a cloud serviceprovided in the embodiment of the present disclosure, the number of theexpected stress test nodes corresponding to the business system isacquired based on the first stress test information of the businesssystem in the cloud service. Then, the edge computing nodes are created,and the number of the edge computing nodes is identical to that of theexpected stress test nodes. Finally, the stress test is performed on thebusiness system by using the edge computing nodes, to acquire the secondstress test information of the business system. Accordingly, the stresstest performed on the business system in the cloud service isimplemented. The edge computing nodes may relate to a plurality ofregions and a plurality of operators, a very complete multi-regionstress test initiation may be implemented without building a machineroom, and the connection for the stress test initiation would not faildue to a region problem. Thus, the stress test simultaneously performedon business systems in the plurality of regions may be satisfied. Inaddition, a stress test tool may be deployed on a stress test initiationnode, and the deployment environment of the stress test tool isconsistent even without a manual operation or script operation.

According to an embodiment of the present disclosure, the presentdisclosure further provides an electronic device, a readable storagemedium, and a computer program product.

FIG. 5 is a schematic block diagram of an exemplary electronic device500 that may be used to implement embodiments of the present disclosure.The electronic device is intended to represent various forms of digitalcomputers such as a laptop computer, a desktop computer, a workstation,a personal digital assistant, a server, a blade server, a mainframecomputer, and other appropriate computers. The electronic device mayalso represent various forms of mobile apparatuses such as personaldigital processing, a cellular telephone, a smart phone, a wearabledevice and other similar computing apparatuses. The parts shown herein,their connections and relationships, and their functions are only asexamples, and not intended to limit implementations of the presentdisclosure as described and/or claimed herein.

As shown in FIG. 5 , the electronic device 500 includes a computationunit 501, which may execute various appropriate actions and processes inaccordance with a computer program stored in a read-only memory (ROM)502 or a computer program loaded into a random access memory (RAM) 503from a storage unit 508. The RAM 503 also stores various programs anddata required by operations of the electronic device 500. Thecomputation unit 501, the ROM 502 and the RAM 503 are connected to eachother through a bus 504. An input/output (I/O) interface 505 is alsoconnected to the bus 504.

The following components in the electronic device 500 are connected tothe I/O interface 505: an input unit 506, for example, a keyboard and amouse; an output unit 507, for example, various types of displays and aspeaker; a storage unit 508, for example, a magnetic disk and an opticaldisk; and a communication unit 509, for example, a network card, amodem, a wireless communication transceiver. The communication unit 509allows the electronic device 500 to exchange information/data with another device through a computer network such as the Internet and/orvarious telecommunication networks.

The computation unit 501 may be various general-purpose and/orspecial-purpose processing assemblies having processing and computingcapabilities. Some examples of the computation unit 501 include, but notlimited to, a central processing unit (CPU), a graphics processing unit(GPU), various dedicated artificial intelligence (AI) computing chips,various processors that run a machine learning model algorithm, adigital signal processor (DSP), any appropriate processor, controllerand microcontroller, etc. The computation unit 501 performs the variousmethods and processes described above, for example, the method fortesting a stress based on a cloud service. For example, in someembodiments, the method for testing a stress based on a cloud servicemay be implemented as a computer software program, which is tangiblyincluded in a machine readable medium, for example, the storage unit508. In some embodiments, part or all of the computer program may beloaded into and/or installed on the electronic device 500 via the ROM502 and/or the communication unit 509. When the computer program isloaded into the RAM 503 and executed by the computation unit 501, one ormore steps of the above method for testing a stress based on a cloudservice may be performed. Alternatively, in other embodiments, thecomputation unit 501 may be configured to perform the method for testinga stress based on a cloud service through any other appropriate approach(e.g., by means of firmware).

The various implementations of the systems and technologies describedherein may be implemented in a digital electronic circuit system, anintegrated circuit system, a field programmable gate array (FPGA), anapplication specific integrated circuit (ASIC), an application specificstandard product (ASSP), a system-on-chip (SOC), a complex programmablelogic device (CPLD), computer hardware, firmware, software and/orcombinations thereof. The various implementations may include: beingimplemented in one or more computer programs, where the one or morecomputer programs may be executed and/or interpreted on a programmablesystem including at least one programmable processor, and theprogrammable processor may be a particular-purpose or general-purposeprogrammable processor, which may receive data and instructions from astorage system, at least one input device and at least one outputdevice, and send the data and instructions to the storage system, the atleast one input device and the at least one output device.

Program codes used to implement the method of embodiments of the presentdisclosure may be written in any combination of one or more programminglanguages. These program codes may be provided to a processor orcontroller of a general-purpose computer, particular-purpose computer orother programmable data processing apparatus, so that the program codes,when executed by the processor or the controller, cause the functions oroperations specified in the flowcharts and/or block diagrams to beimplemented. These program codes may be executed entirely on a machine,partly on the machine, partly on the machine as a stand-alone softwarepackage and partly on a remote machine, or entirely on the remotemachine or a server.

In the context of the present disclosure, the machine-readable mediummay be a tangible medium that may include or store a program for use byor in connection with an instruction execution system, apparatus ordevice. The machine-readable medium may be a machine-readable signalmedium or a machine-readable storage medium. The machine-readable mediummay include, but is not limited to, an electronic, magnetic, optical,electromagnetic, infrared, or semiconductor system, apparatus or device,or any appropriate combination thereof. A more particular example of themachine-readable storage medium may include an electronic connectionbased on one or more lines, a portable computer disk, a hard disk, arandom-access memory (RAM), a read-only memory (ROM), an erasableprogrammable read-only memory (EPROM or flash memory), an optical fiber,a portable compact disk read-only memory (CD-ROM), an optical storagedevice, a magnetic storage device, or any appropriate combinationthereof.

To provide interaction with a user, the systems and technologiesdescribed herein may be implemented on a computer having: a displaydevice (such as a CRT (cathode ray tube) or LCD (liquid crystal display)monitor) for displaying information to the user; and a keyboard and apointing device (such as a mouse or a trackball) through which the usermay provide input to the computer. Other types of devices may also beused to provide interaction with the user. For example, the feedbackprovided to the user may be any form of sensory feedback (such as visualfeedback, auditory feedback or tactile feedback); and input from theuser may be received in any form, including acoustic input, speech inputor tactile input.

The systems and technologies described herein may be implemented in: acomputing system including a background component (such as a dataserver), or a computing system including a middleware component (such asan application server), or a computing system including a front-endcomponent (such as a user computer having a graphical user interface ora web browser through which the user may interact with theimplementations of the systems and technologies described herein), or acomputing system including any combination of such background component,middleware component or front-end component. The components of thesystems may be interconnected by any form or medium of digital datacommunication (such as a communication network). Examples of thecommunication network include a local area network (LAN), a wide areanetwork (WAN), and the Internet.

A computer system may include a client and a server. The client and theserver are generally remote from each other, and generally interact witheach other through the communication network. A relationship between theclient and the server is generated by computer programs running on acorresponding computer and having a client-server relationship with eachother. The server may be a cloud server, a distributed system server, ora server combined with a blockchain.

It should be appreciated that the steps of reordering, adding ordeleting may be executed using the various forms shown above. Forexample, the steps described in embodiments of the present disclosuremay be executed in parallel or sequentially or in a different order, solong as the expected results of the technical schemas provided inembodiments of the present disclosure may be realized, and no limitationis imposed herein.

The above particular implementations are not intended to limit the scopeof the present disclosure. It should be appreciated by those skilled inthe art that various modifications, combinations, sub-combinations, andsubstitutions may be made depending on design requirements and otherfactors. Any modification, equivalent and modification that fall withinthe spirit and principles of the present disclosure are intended to beincluded within the scope of the present disclosure.

What is claimed is:
 1. A method for testing a stress based on a cloudservice, comprising: acquiring, based on first stress test informationof a business system in the cloud service and for each piece of expectedstress test region information, a number of expected stress test nodesof the expected stress test region information based on stress test nodeinformation corresponding to the expected stress test regioninformation, wherein the first stress test information comprises aplurality of pieces of the expected stress test region information ofthe business system and the stress test node information correspondingto each piece of the expected stress test region information; creatingedge computing nodes, a number of the edge computing nodes beingidentical to the number of the expected stress test nodes, wherein theedge computing nodes refer to business platforms constructed at an edgeside of a network close to a user side, and positions of the edgecomputing nodes are between the user side and the cloud service; andperforming a stress test on the business system by using the edgecomputing nodes, to acquire second stress test information of thebusiness system.
 2. The method according to claim 1, wherein the stresstest node information comprises network information, stress test weightinformation, and expected concurrency number information, and whereinthe acquiring comprises: determining, for the each piece of the expectedstress test region information, a node concurrency thresholdcorresponding to network information based on the network informationcorresponding to the expected stress test region information; acquiringa stress test concurrency level corresponding to the expected stresstest region information based on stress test weight informationcorresponding to the expected stress test region information and theexpected concurrency number information; and acquiring the number of theexpected stress test nodes of the expected stress test regioninformation based on the stress test concurrency level and the nodeconcurrency threshold.
 3. The method according to claim 2, furthercomprising: releasing the edge computing nodes, in response to detectingthat the edge computing nodes are in an idle state within preset time.4. The method according to claim 2, further comprising: analyzingservice performance of the business system based on the second stresstest information of the business system.
 5. The method according toclaim 1, further comprising: releasing the edge computing nodes, inresponse to detecting that the edge computing nodes are in an idle statewithin preset time.
 6. The method according to claim 1, furthercomprising: releasing the edge computing nodes, in response to detectingthat the edge computing nodes are in an idle state within preset time.7. The method according to claim 1, further comprising: analyzingservice performance of the business system based on the second stresstest information of the business system.
 8. The method according toclaim 1, further comprising: analyzing service performance of thebusiness system based on the second stress test information of thebusiness system.
 9. An electronic device, comprising: at least oneprocessor; and a storage device, communicated with the at least oneprocessor, wherein the storage device stores an instruction executableby the at least one processor, and the instruction is executed by the atleast one processor, to enable the at least one processor to perform anoperation for testing a stress based on a cloud service, comprising:acquiring, based on first stress test information of a business systemin the cloud service and for each piece of expected stress test regioninformation, a number of expected stress test nodes of the expectedstress test region information based on stress test node informationcorresponding to the expected stress test region information, whereinthe first stress test information comprises a plurality of pieces of theexpected stress test region information of the business system and thestress test node information corresponding to each piece of the expectedstress test region information; creating edge computing nodes, a numberof the edge computing nodes being identical to the number of theexpected stress test nodes, wherein the edge computing nodes refer tobusiness platforms constructed at an edge side of a network close to auser side, and positions of the edge computing nodes are between theuser side and the cloud service; and performing a stress test on thebusiness system by using the edge computing nodes, to acquire secondstress test information of the business system.
 10. The electronicdevice according to claim 9, wherein the stress test node informationcomprises network information, stress test weight information, andexpected concurrency number information, and wherein the acquiringcomprises: determining, for the each piece of the expected stress testregion information, a node concurrency threshold corresponding tonetwork information based on the network information corresponding tothe expected stress test region information; acquiring a stress testconcurrency level corresponding to the expected stress test regioninformation based on stress test weight information corresponding to theexpected stress test region information and the expected concurrencynumber information; and acquiring the number of the expected stress testnodes of the expected stress test region information based on the stresstest concurrency level and the node concurrency threshold.
 11. Theelectronic device according to claim 10, the operation furthercomprising: releasing the edge computing nodes, in response to detectingthat the edge computing nodes are in an idle state within preset time.12. The electronic device according to claim 10, the operation furthercomprising: analyzing service performance of the business system basedon the second stress test information of the business system.
 13. Theelectronic device according to claim 9, the operation furthercomprising: releasing the edge computing nodes, in response to detectingthat the edge computing nodes are in an idle state within preset time.14. The electronic device according to claim 10 the operation furthercomprising: releasing the edge computing nodes, in response to detectingthat the edge computing nodes are in an idle state within preset time.15. The electronic device according to claim 9, the operation furthercomprising: analyzing service performance of the business system basedon the second stress test information of the business system.
 16. Theelectronic device according to claim 10, the operation furthercomprising: analyzing service performance of the business system basedon the second stress test information of the business system.
 17. Anon-transitory computer readable storage medium, storing a computerinstruction, wherein the computer instruction is used to cause acomputer to perform an operation for testing a stress based on a cloudservice, comprising: acquiring, based on first stress test informationof a business system in the cloud service and for each piece of expectedstress test region information, a number of expected stress test nodesof the expected stress test region information based on stress test nodeinformation corresponding to the expected stress test regioninformation, wherein the first stress test information comprises aplurality of pieces of the expected stress test region information ofthe business system and the stress test node information correspondingto each piece of the expected stress test region information; creatingedge computing nodes, a number of the edge computing nodes beingidentical to the number of the expected stress test nodes, wherein theedge computing nodes refer to business platforms constructed at an edgeside of a network close to a user side, and positions of the edgecomputing nodes are between the user side and the cloud service; andperforming a stress test on the business system by using the edgecomputing nodes, to acquire second stress test information of thebusiness system.